<?php
class App_View_Helper_PlayerSeriesListing{

	public function playerSeriesListing($teamID){

		$criteria = new Criteria();
		$criteria->add(TournamentToTeamPeer::TEAM_ID,$teamID,Criteria::IN);
		$criteria->addjoin(TournamentToTeamPeer::TOURNAMENT_ID,TournamentPeer::ID,Criteria::INNER_JOIN);
		$oSeries = TournamentPeer::doSelect($criteria);
		
		$html = "";
		foreach($oSeries as $series){

			$html .='<li>'. $series->getName() .'</li>';

		}

		if($html != ""){

			$html = '<ul class="series-select inline">'. $html ."</ul>";
		}
		return $html;
	}

}